package com.example.paopao.consumer.job.service.impl;

import com.example.paopao.common.pojo.vo.PageData;
import com.example.paopao.consumer.job.dao.persist.repository.IJobHiringRepository;
import com.example.paopao.consumer.job.pojo.vo.JobHringVO;
import com.example.paopao.consumer.job.service.IJobHiringService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class JobHiringService implements IJobHiringService {

    @Value("${paopao.dao.default-query-page-size}")
    private Integer defaultQueryPageSize;

    @Autowired
    private IJobHiringRepository iJobHiringRepository;

    @Override
    public List<JobHringVO> listJobHiring(Integer pageNum) {
        return iJobHiringRepository.listJobHiring(pageNum,defaultQueryPageSize);
    }

}
